package com.fashopcliente.vo;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;
import javax.validation.constraints.NotNull;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.OneToMany;

@RooJavaBean
@RooToString
@RooJpaActiveRecord
public class Empresa {

    /**
     */
    @NotNull
    private String nombre;

    /**
     */
    @NotNull
    private String descripcion;

    /**
     */
    @NotNull
    private String icono;

    /**
     */
    @NotNull
    private String imagen;

    /**
     */
    @NotNull
    private String web;

    /**
     */
    @NotNull
    private String logo;

    /**
     */
    private String imagen2;

    /**
     */
    private String generico1;

    /**
     */
    @OneToMany(cascade = CascadeType.ALL, mappedBy = "empresa_idempresa")
    private Set<Local> idlocal = new HashSet<Local>();
}
